package com.newhis.utils;

import java.util.HashMap;
import java.util.Map;

public class ConfigUtils {
    private static Map<String, String> data = new HashMap<>();
    private ConfigUtils(){
    }
    public static String get(String key){
        if (data.isEmpty()){
            return "";
        }
        if (!data.containsKey(key)){
            return "";
        }
        return data.get(key);
    }

    public static void put(String key, String value){
        data.put(key, value);
    }

    public static int size(){
        return data.size();
    }

}
